// @ts-ignore
import loadable from "react-loadable";
import Loading from "../component/Loading";

/**
 * 将所有组件都加上懒加载导出，使router支持懒加载
 */
export const Register = loadable({
  loader: () => import("../views/register/Register"),
  loading: Loading
});

export const Login = loadable({
  loader: () => import("../views/login-in/Login"),
  loading: Loading
});
export const Home = loadable({
  loader: () => import("../views/home-page/Home"),
  loading: Loading
});
export const UserInfo = loadable({
  loader: () => import("../views/user-info/UserInfo"),
  loading: Loading
});

export const AccountSetting = loadable({
  loader: () => import("../views/user-info/AccountSetting"),
  loading: Loading
});
export const HealthInformation = loadable({
  loader: () => import("../views/health-information/HealthInformation"),
  loading: Loading
});
export const InformationDisclosure = loadable({
  loader: () => import("../views/information-disclosure/InformationDisclosure"),
  loading: Loading
});
export const MedicalResource = loadable({
  loader: () => import("../views/medical-resource/MedicalResource"),
  loading: Loading
});
export const ViewsCheck = loadable({
  loader: () => import("../views/information-disclosure/ViewsCheck"),
  loading: Loading
});
export const DetailDoctor = loadable({
  loader: () => import("../views/medical-resource/DetailDoctor"),
  loading: Loading
});
export const DetailHospital = loadable({
  loader: () => import("../views/medical-resource/DetailHospital"),
  loading: Loading
});
